const { equal } = require("assert");

let str = 'wd=123&kkk=456&uuu=789'
url.Myparse = function(str){
    var con = 0;
    var symbol = ['//','/',':','?']
    var key = ['protocol','host','port','hostname']
    for(var i = 0;i<symbol.length();i++)
    {
        var nowstringArry = str.split(symbol[i])
        
    }
    // var protocal = str.split(symbol[0])
    // var host = protocal[1].split('/') 
    // var port = host[0].split(':')
    // var hostname = host[0].split(':')
    // var obj = {}
    }
url.Lessparse = function(str){
    var arr = str.split('&')
    var obj = {}
    for(var i = 0;i<arr.lengh();i++)
    {
        var arr1 = arr[i].split('=')
        obj[arr1[0]] = arr1[1]
    }
}